package com.huoyun.order.dao;

import java.util.List;

import com.huoyun.base.dao.BaseDaoImpl;
import com.huoyun.order.bean.OrderLog;

public class OrderLogDaoImpl extends BaseDaoImpl<OrderLog> implements OrderLogDao {

	@Override
	public void saveOrderLog(OrderLog orderLog) 
	{
		this.sqlSessionTemplate.insert("com.huoyun.order.dao.OrderLogDaoMapper.saveOrderLog", orderLog);
	}

	@Override
	public List<OrderLog> queryList(long orderId) 
	{
		return this.sqlSessionTemplate.selectList("com.huoyun.order.dao.OrderLogDaoMapper.queryList", orderId);
	}

	@Override
	public OrderLog getOrderLogById(long orderLogId) 
	{
		return this.sqlSessionTemplate.selectOne("com.huoyun.order.dao.OrderLogDaoMapper.getOrderLogById", orderLogId);
	}

	@Override
	public void delete(long orderLogId) 
	{
		this.sqlSessionTemplate.delete("com.huoyun.order.dao.OrderLogDaoMapper.delete", orderLogId);
	}

}
